package com.aizhixin.lab.course.classes.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class CourseInfoDTO {
	@ApiModelProperty(value = "课程id", required = false)
	private String courseId;
	@ApiModelProperty(value = "课程名称", required = false)
    private String courseName;
	@ApiModelProperty(value = "创建时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createdDate;
	@ApiModelProperty(value = "课程班级列表", required = false)
    private List<CourseClassDTO> courseClassList = new ArrayList<CourseClassDTO>();

}
